package com.core.image.core.box;

import com.core.image.core.ReceivePacket;

import java.io.ByteArrayOutputStream;

/**
 * describe:
 *
 * @author 库琦
 * @date 2020/01/29
 */
public abstract class AbsByteArrayReceivePacket<Entity> extends ReceivePacket<ByteArrayOutputStream,Entity> {
    public AbsByteArrayReceivePacket(long len) {
        super(len);
    }
    public final ByteArrayOutputStream createStream(){
        return new ByteArrayOutputStream((int)length);
    }

}
